<?php
/**
 * Created by PhpStorm.
 * User: Teddy
 * Date: 16/2/29
 * Time: 下午6:03
 */

//exec("export DISPLAY=:0");
//exec("/usr/bin/java -jar /var/www/html/webui/uitest.jar",$output, $return_val);
/*shell_exec("java -jar uitest.jar");*/


exec("/usr/bin/java -jar /Library/WebServer/Documents/webui/uitest.jar",$output, $return_val);
print_r($output);